package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IAffirmOrderActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AffirmOrderRequest;
import com.wgts.wgts.netmodle.req.PlaceOrderRequest;
import com.wgts.wgts.netmodle.resp.AffirmOrderEntity;
import com.wgts.wgts.netmodle.resp.OrderEntity;

import java.util.ArrayList;

/*
 *
 *
 *   data:2018/10/615:00
 *
 */public class AffirmOrderActivityModel implements IAffirmOrderActivityModel {
     private NetService netService;

    public AffirmOrderActivityModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void affirmOrderResult(AffirmOrderRequest requests, HttpResultSubscriber<AffirmOrderEntity> subscriber) {
        netService.affirmOrder(requests, subscriber);
    }

    @Override
    public void placeOrder(PlaceOrderRequest request, HttpResultSubscriber<OrderEntity> subscriber) {
        netService.placeOrder(request, subscriber);
    }
}
